﻿
<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/MasterPage/Principal.master" CodeBehind="Consultar_NaveViaje.aspx.vb" Inherits="webNaviera.Consultar_NaveViaje" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style5
        {
        }
        .style11
        {
            height: 16px;
            width: 289px;
        }
        .style12
        {
            width: 289px;
        }
        .style16
        {
            width: 85px;
        }
    .style17
    {
            width: 19px;
        }
        .style18
        {
            width: 906px;
        }
        .style19
        {
            width: 101px;
        }
        .style20
        {
            width: 190px;
        }
        .style21
        {
            height: 16px;
            width: 190px;
        }
        .style24
        {
            height: 16px;
            width: 19px;
        }
        .style25
        {
            width: 361px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

 <script>

     var ventana_secundaria;

     function abrirVentana() {
         //guardo la referencia de la ventana para poder utilizarla luego 
         ventana_secundaria = window.showModalDialog("../PopUp/BuscarNave.aspx", "miventana", "dialogWidth:510;dialogheight:380;menubar=no")
         __doPostBack("MiFuncionPaquetes", "");
     }

      
  </script>
    <p>


                        <table border="0" cellpadding="3" cellspacing="2" __designer:mapid="41c3" 
                            class="style18">
                            <tr class="TRlist3" __designer:mapid="4301">
                                <td __designer:mapid="4302" class="style5" colspan="7" 
                                    style="background-color: #BFDBFF">
                                    <asp:Label ID="Label11" runat="server" style="font-weight: 700" 
                                        Text="Nave" ForeColor="#000066"></asp:Label>
                                </td>
                            </tr>
                            <tr class="TRlist3" __designer:mapid="4301">
                                <td __designer:mapid="4302" class="style19" style="color: #808080">
                                    Línea:
                                </td>
                                <td class="style25" __designer:mapid="4303" style="color: #808080">
                                   <asp:DropDownList ID="cboLinea" runat="server" Width="147px" AutoPostBack="True">
                    </asp:DropDownList>
                                </td>
                                <td __designer:mapid="4303" style="color: #808080">
                                    &nbsp;</td>
                                <td class="style16" __designer:mapid="4348" style="color: #808080">
                                    Servicio:</td>
                                <td __designer:mapid="43af" class="style21" style="color: #808080">
                                   <asp:DropDownList ID="cboServicio" runat="server" Width="147px">
                    </asp:DropDownList>
                                </td>
                                <td __designer:mapid="43f3" class="style24" style="color: #808080">
                                    &nbsp;</td>
                                <td __designer:mapid="4438" class="style11" style="color: #808080">
                                    &nbsp;</td>
                            </tr>
                            <tr class="TRlist3" __designer:mapid="4301">
                                <td __designer:mapid="4302" class="style19" style="color: #808080">
                                    Ini. Arribo:</td>
                                <td class="style25" __designer:mapid="4303" style="color: #808080">
                                    <asp:TextBox runat="server" ID="txtIniArr" Width="147px"></asp:TextBox>
                                    <cc1:CalendarExtender runat="server" Enabled="True" TargetControlID="txtIniArr" 
                                        ID="CalendarExtender1">
                                    </cc1:CalendarExtender>
                                    <cc1:MaskedEditExtender runat="server" Mask="99/99/9999" MaskType="Date" 
                                        CultureDatePlaceholder="" CultureTimePlaceholder="" 
                                        CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" 
                                        CultureDateFormat="" CultureCurrencySymbolPlaceholder="" 
                                        CultureAMPMPlaceholder="" Enabled="True" TargetControlID="txtIniArr" 
                                        ID="MaskedEditExtender1">
                                    </cc1:MaskedEditExtender>
                                </td>
                                <td __designer:mapid="4303" style="color: #808080">
                                    &nbsp;</td>
                                <td class="style16" __designer:mapid="4348" style="color: #808080">
                                    Fin Arribo:</td>
                                <td __designer:mapid="43af" class="style21" style="color: #808080">
                                    <asp:TextBox runat="server" ID="txtFinArr" Width="147px"></asp:TextBox>
                                    <cc1:CalendarExtender runat="server" Enabled="True" 
                                        TargetControlID="txtFinArr" ID="txtFinArr_CalendarExtender">
                                    </cc1:CalendarExtender>
                                    <cc1:MaskedEditExtender runat="server" Mask="99/99/9999" MaskType="Date" 
                                        CultureDatePlaceholder="" CultureTimePlaceholder="" 
                                        CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" 
                                        CultureDateFormat="" CultureCurrencySymbolPlaceholder="" 
                                        CultureAMPMPlaceholder="" Enabled="True" TargetControlID="txtFinArr" 
                                        ID="txtFinArr_MaskedEditExtender">
                                    </cc1:MaskedEditExtender>
                                </td>
                                <td __designer:mapid="43f3" class="style24" style="color: #808080">
                                    &nbsp;</td>
                                <td __designer:mapid="4438" class="style11" style="color: #808080">
                                    &nbsp;</td>
                            </tr>
                            <tr class="TRlist3" __designer:mapid="4301">
                                <td __designer:mapid="4302" class="style19" style="color: #808080">
                                    Nave:</td>
                                <td class="style25" __designer:mapid="4303" style="color: #808080">
                                    <asp:TextBox runat="server" MaxLength="6" Width="55px" ID="txtNave" 
                                        Enabled="False"></asp:TextBox>

                                    <asp:TextBox runat="server" MaxLength="80" Width="199px" 
                                        ID="txtDescripcionNave" Enabled="False"></asp:TextBox>

                                </td>
                                <td __designer:mapid="4303" style="color: #808080">
                                    <img border="0"      src="../../res/img/search.gif" onclick ="abrirVentana();" 
                                style="height: 16px; "/></td>
                                <td class="style16" __designer:mapid="4348" style="color: #808080">
                                    &nbsp;</td>
                                <td __designer:mapid="43af" class="style21" style="color: #808080">
                                    &nbsp;</td>
                                <td __designer:mapid="43f3" class="style24" style="color: #808080">
                                    &nbsp;</td>
                                <td __designer:mapid="4438" class="style11" style="color: #808080">
                                    &nbsp;</td>
                            </tr>
                            <tr class="TRlist3" __designer:mapid="4301">
                                <td __designer:mapid="4302" class="style19" style="color: #808080">
                                    &nbsp;</td>
                                <td class="style25" __designer:mapid="4303" style="color: #808080">
                                    &nbsp;</td>
                                <td __designer:mapid="4303" style="color: #808080">
                                    &nbsp;</td>
                                <td class="style16" __designer:mapid="4348" style="color: #808080">
                                    &nbsp;</td>
                                <td __designer:mapid="43af" class="style21" style="color: #808080">
                                    &nbsp;</td>
                                <td __designer:mapid="43f3" class="style24" style="color: #808080">
                                    &nbsp;</td>
                                <td __designer:mapid="4438" class="style11" style="color: #808080">
                                    &nbsp;</td>
                            </tr>
                            <tr class="TRlist3" __designer:mapid="4593">
                                <td __designer:mapid="4594" class="style19">
                                </td>
                                <td class="style25" __designer:mapid="4595">
                                    <dx:ASPxButton runat="server" ImagePosition="Left" 
                                        SpriteCssFilePath="~/App_Themes/Aqua/{0}/sprite.css" HorizontalAlign="NotSet" 
                                        VerticalAlign="NotSet" Wrap="Default" Text="Consultar" CssPostfix="Aqua" 
                                        CssFilePath="~/App_Themes/Aqua/{0}/styles.css" ClientIDMode="AutoID" 
                                        ID="btnConsultar" Height="24px" Width="100px">
                                        <Image Align="NotSet">
                                        </Image>
                                        <CheckedStyle>
                                            <BackgroundImage Repeat="Repeat">
                                            </BackgroundImage>
                                            <Border BorderStyle="NotSet">
                                            </Border>
                                            <BorderLeft BorderStyle="NotSet">
                                            </BorderLeft>
                                            <BorderTop BorderStyle="NotSet">
                                            </BorderTop>
                                            <BorderRight BorderStyle="NotSet">
                                            </BorderRight>
                                            <BorderBottom BorderStyle="NotSet">
                                            </BorderBottom>
                                        </CheckedStyle>
                                        <PressedStyle>
                                            <BackgroundImage Repeat="Repeat">
                                            </BackgroundImage>
                                            <Border BorderStyle="NotSet">
                                            </Border>
                                            <BorderLeft BorderStyle="NotSet">
                                            </BorderLeft>
                                            <BorderTop BorderStyle="NotSet">
                                            </BorderTop>
                                            <BorderRight BorderStyle="NotSet">
                                            </BorderRight>
                                            <BorderBottom BorderStyle="NotSet">
                                            </BorderBottom>
                                        </PressedStyle>
                                        <HoverStyle>
                                            <BackgroundImage Repeat="Repeat">
                                            </BackgroundImage>
                                            <Border BorderStyle="NotSet">
                                            </Border>
                                            <BorderLeft BorderStyle="NotSet">
                                            </BorderLeft>
                                            <BorderTop BorderStyle="NotSet">
                                            </BorderTop>
                                            <BorderRight BorderStyle="NotSet">
                                            </BorderRight>
                                            <BorderBottom BorderStyle="NotSet">
                                            </BorderBottom>
                                        </HoverStyle>
                                        <FocusRectBorder BorderStyle="NotSet">
                                        </FocusRectBorder>
                                        <BackgroundImage Repeat="Repeat">
                                        </BackgroundImage>
                                        <Border BorderStyle="NotSet">
                                        </Border>
                                        <BorderLeft BorderStyle="NotSet">
                                        </BorderLeft>
                                        <BorderTop BorderStyle="NotSet">
                                        </BorderTop>
                                        <BorderRight BorderStyle="NotSet">
                                        </BorderRight>
                                        <BorderBottom BorderStyle="NotSet">
                                        </BorderBottom>
                                        <DisabledStyle>
                                            <BackgroundImage Repeat="Repeat">
                                            </BackgroundImage>
                                            <Border BorderStyle="NotSet">
                                            </Border>
                                            <BorderLeft BorderStyle="NotSet">
                                            </BorderLeft>
                                            <BorderTop BorderStyle="NotSet">
                                            </BorderTop>
                                            <BorderRight BorderStyle="NotSet">
                                            </BorderRight>
                                            <BorderBottom BorderStyle="NotSet">
                                            </BorderBottom>
                                        </DisabledStyle>
                                    </dx:ASPxButton>
                                </td>
                                <td __designer:mapid="4595">
                                    &nbsp;</td>
                                <td class="style16" __designer:mapid="45fc">
                                    <dx:ASPxButton runat="server" ImagePosition="Left" 
                                        SpriteCssFilePath="~/App_Themes/Aqua/{0}/sprite.css" HorizontalAlign="NotSet" 
                                        VerticalAlign="NotSet" Wrap="Default" Text="Nuevo" CssPostfix="Aqua" ClientIDMode="AutoID" 
                                        ID="btnNuevo" Height="24px" Width="100px">
                                        <Image Align="NotSet">
                                        </Image>
                                        <CheckedStyle>
                                            <BackgroundImage Repeat="Repeat">
                                            </BackgroundImage>
                                            <Border BorderStyle="NotSet">
                                            </Border>
                                            <BorderLeft BorderStyle="NotSet">
                                            </BorderLeft>
                                            <BorderTop BorderStyle="NotSet">
                                            </BorderTop>
                                            <BorderRight BorderStyle="NotSet">
                                            </BorderRight>
                                            <BorderBottom BorderStyle="NotSet">
                                            </BorderBottom>
                                        </CheckedStyle>
                                        <PressedStyle>
                                            <BackgroundImage Repeat="Repeat">
                                            </BackgroundImage>
                                            <Border BorderStyle="NotSet">
                                            </Border>
                                            <BorderLeft BorderStyle="NotSet">
                                            </BorderLeft>
                                            <BorderTop BorderStyle="NotSet">
                                            </BorderTop>
                                            <BorderRight BorderStyle="NotSet">
                                            </BorderRight>
                                            <BorderBottom BorderStyle="NotSet">
                                            </BorderBottom>
                                        </PressedStyle>
                                        <HoverStyle>
                                            <BackgroundImage Repeat="Repeat">
                                            </BackgroundImage>
                                            <Border BorderStyle="NotSet">
                                            </Border>
                                            <BorderLeft BorderStyle="NotSet">
                                            </BorderLeft>
                                            <BorderTop BorderStyle="NotSet">
                                            </BorderTop>
                                            <BorderRight BorderStyle="NotSet">
                                            </BorderRight>
                                            <BorderBottom BorderStyle="NotSet">
                                            </BorderBottom>
                                        </HoverStyle>
                                        <FocusRectBorder BorderStyle="NotSet">
                                        </FocusRectBorder>
                                        <BackgroundImage Repeat="Repeat">
                                        </BackgroundImage>
                                        <Border BorderStyle="NotSet">
                                        </Border>
                                        <BorderLeft BorderStyle="NotSet">
                                        </BorderLeft>
                                        <BorderTop BorderStyle="NotSet">
                                        </BorderTop>
                                        <BorderRight BorderStyle="NotSet">
                                        </BorderRight>
                                        <BorderBottom BorderStyle="NotSet">
                                        </BorderBottom>
                                        <DisabledStyle>
                                            <BackgroundImage Repeat="Repeat">
                                            </BackgroundImage>
                                            <Border BorderStyle="NotSet">
                                            </Border>
                                            <BorderLeft BorderStyle="NotSet">
                                            </BorderLeft>
                                            <BorderTop BorderStyle="NotSet">
                                            </BorderTop>
                                            <BorderRight BorderStyle="NotSet">
                                            </BorderRight>
                                            <BorderBottom BorderStyle="NotSet">
                                            </BorderBottom>
                                        </DisabledStyle>
                                    </dx:ASPxButton>
                                </td>
                                <td __designer:mapid="4663" class="style21">
                                    &nbsp;</td>
                                <td __designer:mapid="46a7" class="style24">
                                    <dx:ASPxButton runat="server" ImagePosition="Left" 
                                        SpriteCssFilePath="~/App_Themes/Aqua/{0}/sprite.css" HorizontalAlign="NotSet" 
                                        VerticalAlign="NotSet" Wrap="Default" Text="Salir" CssPostfix="Aqua" 
                                        CssFilePath="~/App_Themes/Aqua/{0}/styles.css" ClientIDMode="AutoID" 
                                        ID="btnSalir" Height="24px" Width="100px">
                                        <Image Align="NotSet">
                                        </Image>
                                        <CheckedStyle>
                                            <BackgroundImage Repeat="Repeat">
                                            </BackgroundImage>
                                            <Border BorderStyle="NotSet">
                                            </Border>
                                            <BorderLeft BorderStyle="NotSet">
                                            </BorderLeft>
                                            <BorderTop BorderStyle="NotSet">
                                            </BorderTop>
                                            <BorderRight BorderStyle="NotSet">
                                            </BorderRight>
                                            <BorderBottom BorderStyle="NotSet">
                                            </BorderBottom>
                                        </CheckedStyle>
                                        <PressedStyle>
                                            <BackgroundImage Repeat="Repeat">
                                            </BackgroundImage>
                                            <Border BorderStyle="NotSet">
                                            </Border>
                                            <BorderLeft BorderStyle="NotSet">
                                            </BorderLeft>
                                            <BorderTop BorderStyle="NotSet">
                                            </BorderTop>
                                            <BorderRight BorderStyle="NotSet">
                                            </BorderRight>
                                            <BorderBottom BorderStyle="NotSet">
                                            </BorderBottom>
                                        </PressedStyle>
                                        <HoverStyle>
                                            <BackgroundImage Repeat="Repeat">
                                            </BackgroundImage>
                                            <Border BorderStyle="NotSet">
                                            </Border>
                                            <BorderLeft BorderStyle="NotSet">
                                            </BorderLeft>
                                            <BorderTop BorderStyle="NotSet">
                                            </BorderTop>
                                            <BorderRight BorderStyle="NotSet">
                                            </BorderRight>
                                            <BorderBottom BorderStyle="NotSet">
                                            </BorderBottom>
                                        </HoverStyle>
                                        <FocusRectBorder BorderStyle="NotSet">
                                        </FocusRectBorder>
                                        <BackgroundImage Repeat="Repeat">
                                        </BackgroundImage>
                                        <Border BorderStyle="NotSet">
                                        </Border>
                                        <BorderLeft BorderStyle="NotSet">
                                        </BorderLeft>
                                        <BorderTop BorderStyle="NotSet">
                                        </BorderTop>
                                        <BorderRight BorderStyle="NotSet">
                                        </BorderRight>
                                        <BorderBottom BorderStyle="NotSet">
                                        </BorderBottom>
                                        <DisabledStyle>
                                            <BackgroundImage Repeat="Repeat">
                                            </BackgroundImage>
                                            <Border BorderStyle="NotSet">
                                            </Border>
                                            <BorderLeft BorderStyle="NotSet">
                                            </BorderLeft>
                                            <BorderTop BorderStyle="NotSet">
                                            </BorderTop>
                                            <BorderRight BorderStyle="NotSet">
                                            </BorderRight>
                                            <BorderBottom BorderStyle="NotSet">
                                            </BorderBottom>
                                        </DisabledStyle>
                                    </dx:ASPxButton>
                                </td>
                                <td __designer:mapid="46ec" class="style11">
                                    &nbsp;</td>
                            </tr>
                            <tr class="TRlist3" __designer:mapid="487c">
                                <td colspan="7" style="background-color: #BFDBFF" __designer:mapid="487d">
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                </td>
                            </tr>
                            <tr class="TRlist3" __designer:mapid="4b1b">
                                <td __designer:mapid="4b1c" class="style19">
                                    &nbsp;</td>
                                <td class="style25" __designer:mapid="4b1d">
                                    &nbsp;</td>
                                <td __designer:mapid="4b1d">
                                    &nbsp;</td>
                                <td class="style16" __designer:mapid="4b1f">
                                    &nbsp;</td>
                                <td __designer:mapid="4b21" class="style20">
                                    &nbsp;</td>
                                <td __designer:mapid="4b22" class="style17">
                                    &nbsp;</td>
                                <td __designer:mapid="4b24" class="style12">
                                    &nbsp;</td>
                            </tr>
                        </table>

                        <table _designer:mapid="41c3">
                        <tr  class="TRlist3" __designer:mapid="41c9">
                        <td __designer:mapid="41ca" class="style5" style="vertical-align: top">
                                	
		 	 	  	 						
			
                                    <asp:GridView ID="dgNaveViaje" runat="server" AutoGenerateColumns="False" 
                                        CellPadding="4" ForeColor="#333333" GridLines="Vertical" 
                                        OnPageIndexChanging="Cambiarpagina"  Width="1087px" 
                                        Height="192px" AllowPaging="True" AllowSorting="True" PageSize="12">
                                        <AlternatingRowStyle BackColor="White" />
                                        <Columns>
                                            <asp:BoundField DataField="Viaje" HeaderText="Kvje" Visible="False" />
                                            <asp:BoundField DataField="CodNave" HeaderText="CodNav" Visible="False" />
                                            <asp:BoundField DataField="DesNave" HeaderText="Nave" >
                                            <ItemStyle Width="250px" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="Dire" HeaderText="Dir">
                                            <ItemStyle Width="50px" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="Nvia" HeaderText="Vía" >
                                            <ItemStyle Width="50px" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="Line" HeaderText="Línea" > 
                                            <ItemStyle Width="70px" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="Serv" HeaderText="Servicio" >
                                            <ItemStyle Width="70px" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="Farr" HeaderText="F. Arribo"  >
                                            <ItemStyle Width="80px" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="Fzar" HeaderText="F. Zarpe" >
                                            <ItemStyle Width="80px" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="FCierre" HeaderText="F. Cierre" />
                                            <asp:TemplateField HeaderText="Editar">
                                                <ItemTemplate>
                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                    <asp:ImageButton ID="ImagenEditar1" runat="server" 
                                                        CommandArgument='<%#Eval("Viaje")%>' CommandName="Editar" Height="19px" 
                                                        ImageUrl="~/res/img/icono_editar.gif" Width="16px" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Eliminar">
                                                <ItemTemplate>
                                                    &nbsp;&nbsp;&nbsp;&nbsp;
                                                    <asp:ImageButton ID="imgEliminar" runat="server" 
                                                        CommandArgument='<%#Eval("Viaje")%>' CommandName="Eliminar" Height="19px" 
                                                        ImageUrl="~/res/img/icono_eliminar.gif" Width="16px" />
                                       
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                        <EditRowStyle BackColor="#2461BF" />
                                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                        <RowStyle BackColor="#EFF3FB" />
                                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                        <SortedAscendingCellStyle BackColor="#F5F7FB" />
                                        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                                        <SortedDescendingCellStyle BackColor="#E9EBEF" />
                                        <SortedDescendingHeaderStyle BackColor="#4870BE" />
                                    </asp:GridView>
                                </td>
                        <td __designer:mapid="41ca" class="style5" style="vertical-align: top">
                                	
		 	 	  	 						
			
                                    &nbsp;</td>
                        </tr>
                        </table>

</p>
</asp:Content>
